package com.itqf.ipmsys.service.impl;

import com.itqf.ipmsys.entity.ParkingLot;
import com.itqf.ipmsys.mapper.ParkingLotMapper;
import com.itqf.ipmsys.service.ParkingLotService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 停车场表 服务实现类
 * </p>
 *
 * @author corn
 * @since 2021-09-22
 */
@Service
public class ParkingLotServiceImpl extends ServiceImpl<ParkingLotMapper, ParkingLot> implements ParkingLotService {

    @Autowired
    private ParkingLotMapper parkingLotMapper;

    /**
     * 查询停车场总数量
     *
     * @return
     */
    @Override
    public Integer findPackingCount() {
        Integer count = parkingLotMapper.selectCount(null);
        return count;
    }
}
